<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>更新口罩信息</title>
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.css}">
    <link rel="stylesheet" th:href="@{/css/common.css}">
</head>
<body>
<div th:insert="~{common/header::header2}"></div>
<div class="container-fluid">
    <div class="row">
        <div th:insert="~{common/menu::menu}" class="col-md-2"></div>
        <div class="col-md-10">
            <ul class="breadcrumb">
                <li><a th:href="@{/main.do}">后台主页</a></li>
                <li>防疫物资管理</li>
                <li>口罩信息管理</li>
            </ul>
            <form th:action="@{/mask-info/update.do}">
                <div>
                    <input type="hidden" name="maskId" th:value="${mask.getMaskId()}">
                </div>
                <div class="form-group row justify-content-sm-center">
                    <label for="maskType" class="col-sm-2 col-form-label font-weight-bold">卫生级别</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control " id="maskType" th:value="${mask.getMaskType()}" name="maskType">
                    </div>
                </div>
                <div class="form-group row justify-content-sm-center">
                    <label for="maskName" class="col-sm-2 col-form-label font-weight-bold">口罩名称</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control " id="maskName" th:value="${mask.getMaskName()}" name="maskName">
                    </div>
                </div>
                <div class="form-group row justify-content-sm-center">
                    <label for="applicableScene" class="col-sm-2 col-form-label font-weight-bold">适用场景</label>
                    <div class="col-sm-5">
                        <textarea class="form-control" id="applicableScene" th:text="${mask.getApplicableScene()}" name="applicableScene" rows="3" required> </textarea>
                    </div>
                </div>
                <div class="form-group row justify-content-sm-center">
                    <label for="specification" class="col-sm-2 col-form-label font-weight-bold">口罩规格（只/袋）</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control " id="specification" th:value="${mask.getSpecification()}" name="specification">
                    </div>
                </div>
                <div class="form-group row justify-content-sm-center">
                    <label for="maskPrice" class="col-sm-2 col-form-label font-weight-bold">口罩单价</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control " id="maskPrice" th:value="${mask.getMaskPrice()}" name="maskPrice">
                    </div>
                </div>
                <div class="form-group row justify-content-sm-center">
                    <label for="place" class="col-sm-2 col-form-label font-weight-bold">口罩产地</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control " id="place" th:value="${mask.getPlace()}" name="place">
                    </div>
                </div>
                <div class="form-group row justify-content-sm-center">
                    <label for="maskPeriod" class="col-sm-2 col-form-label font-weight-bold">有效期</label>
                    <div class="col-sm-5">
                        <input type="text" class="form-control " id="maskPeriod" th:value="${mask.getMaskPeriod()}" name="maskPeriod">
                    </div>
                </div>
                <div class="form-group row justify-content-sm-center">
                    <div class="col-sm-1">
                        <button class="btn btn-sm btn-success" type="submit">提交</button>
                    </div>
                    <div class="col-sm-1">
                        <button  class="btn btn-sm btn-primary"><a style="color: white" th:href="@{/mask-info/show.do}" >取消</a></button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
<script th:src="@{/jquery/jquery-3.5.1.js}"></script>
<script th:src="@{/bootstrap/js/bootstrap.js}"></script>
<script th:src="@{/bootstrap/datepicker/bootstrap-datepicker.js}"></script>
<script th:src="@{/bootstrap/datepicker/bootstrap-datepicker.zh-CN.min.js}"></script>
</html>